module Base
{
	model fhq300ZXZ32Base
	{
		mesh = vehicles/vehicles_fhq300ZXZ32,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.9,
	}
	model fhq300ZXZ32WheelLeft
	{
		mesh = vehicles/vehicles_fhq300ZXZ32Wheel,
		texture = vehicles/vehicle_fhq300ZXZ32Wheel,
		invertX = FALSE,
		scale = 1,
	}
	model fhq300ZXZ32WheelRight
	{
		mesh = vehicles/vehicles_fhq300ZXZ32Wheel,
		texture = vehicles/vehicle_fhq300ZXZ32Wheel,
		invertX = TRUE,
		scale = 1,
	}
	vehicle fhq300ZXZ32
    {
        mechanicType = 3,
        offRoadEfficiency = 0.8,
        engineRepairLevel = 6,
        playerDamageProtection = 0.8,
        engineRPMType = firebird,

        model
        {
            file = fhq300ZXZ32Base,
            scale = 0.7500,
            offset = 0.0000 0.6133 0.0000,
        }

        spawnOffsetY = 0.12999995,

        skin
        {
            texture = Vehicles/vehicle_fhq300ZXZ32_shell,
        }

        textureMask = Vehicles/vehicle_fhq300ZXZ32_Mask,
        textureLights = Vehicles/vehicle_fhq300ZXZ32_Lights,
        textureDamage1Overlay = Vehicles/Veh_Blood_Mask,
        textureDamage2Overlay = Vehicles/Veh_Blood_Hvy,
        textureDamage1Shell = Vehicles/Veh_Damage1,
        textureDamage2Shell = Vehicles/Veh_Damage2,
        textureRust = Vehicles/Veh_Rust,

        sound
        {
            engine = VehicleEngineSportsCar,
            engineStart = VehicleEngineSportsCar,
            engineTurnOff = VehicleEngineSportsCar,
            horn = VehicleHornStandard,
            ignitionFail = VehicleIgnitionFailSportsCar,
        }

        extents = 2.2133 1.4400 5.1733,
        mass = 785,
        physicsChassisShape = 2.1867 1.4133 5.1467,
        centerOfMassOffset = 0.0000 0.7067 0.0000,
        shadowExtents = 2.2887 5.3436,
        shadowOffset = 0.0000 0.0000,
        engineForce = 5250,
        engineLoudness = 85,
        engineQuality = 60,
        maxSpeed = 125f,
        gearRatioCount = 5,
        stoppingMovementForce = 3.0f,
        rollInfluence = 0.7f,
        steeringIncrement = 0.04,
        steeringClamp = 0.3,
        suspensionStiffness = 40,
        suspensionCompression = 4.1,
        suspensionDamping = 3.12,
        maxSuspensionTravelCm = 20,
        suspensionRestLength = 0.3f,
        wheelFriction = 1.6f,
        frontEndHealth = 150,
        rearEndHealth = 150,
        seats = 2,

        wheel FrontLeft
        {
            front = true,
            offset = 0.8933 -0.5333 1.4400,
            radius = 0.38f,
            width = 0.25f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.8933 -0.5333 1.4400,
            radius = 0.38f,
            width = 0.25f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.9067 -0.5333 -1.4533,
            radius = 0.38f,
            width = 0.25f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.9067 -0.5333 -1.4533,
            radius = 0.38f,
            width = 0.25f,
        }

        template = PassengerSeat2,

        passenger FrontLeft
        {
            position inside
            {
                offset = 0.5067 -0.3067 -0.1867,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 1.5200 -0.9333 0.2933,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            position inside
            {
                offset = -0.5067 -0.3067 -0.1867,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -1.5200 -0.9467 0.2933,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }

        area Engine
        {
            xywh = 0.0000 3.1733 2.0000 1.1733,
        }

        area TruckBed
        {
            xywh = 0.0000 -3.1467 2.1867 1.1200,
        }

        area SeatFrontLeft
        {
            xywh = 1.6000 -0.0400 0.9867 1.1200,
        }

        area SeatFrontRight
        {
            xywh = -1.5867 -0.0800 0.9867 1.1200,
        }

        area GasTank
        {
            xywh = 1.3867 -1.0400 0.5600 0.5600,
        }

        area TireFrontLeft
        {
            xywh = 1.4533 1.5200 0.6933 0.6933,
        }

        area TireFrontRight
        {
            xywh = -1.4533 1.5200 0.6933 0.6933,
        }

        area TireRearLeft
        {
            xywh = 1.4533 -1.4933 0.6933 0.6933,
        }

        area TireRearRight
        {
            xywh = -1.4533 -1.4400 0.6933 0.6933,
        }

        template = TrunkDoor,

        part TrunkDoor
        {
            anim Open
            {
                sound = VehicleTrunkOpenSportsCar,
            }

            anim Close
            {
                sound = VehicleTrunkCloseSportsCar,
            }

            anim Lock
            {
                sound = LockVehicleDoorSportsCar,
            }

            anim Unlock
            {
                sound = UnlockVehicleDoorSportsCar,
            }

            anim IsLocked
            {
                sound = VehicleDoorIsLockedSportsCar,
            }

            table install
            {
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                recipes = Advanced Mechanics,
                requireUninstalled = WindshieldRear,
            }
        }

        template = Trunk/part/TruckBed,

        part TruckBed
        {
            itemType = Base.BigTrunk,
        }

        template = Seat/part/SeatFrontLeft,
        template = Seat/part/SeatFrontRight,

        part Seat*
        {
            table install
            {
                skills = Mechanics:2,
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                skills = Mechanics:2,
                recipes = Advanced Mechanics,
            }
        }

        template = GloveBox,
        template = GasTank,

        part GasTank
        {
            install
            {
                skills = Mechanics:7,
                recipes = Advanced Mechanics,
            }

            uninstall
            {
                skills = Mechanics:7,
                recipes = Advanced Mechanics,
            }
        }

        template = Battery,
        template = Engine,
        template = Muffler,

        part Muffler
        {
            table install
            {
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                recipes = Advanced Mechanics,
            }
        }

        template = EngineDoor,

        part EngineDoor
        {
            anim Open
            {
                sound = VehicleHoodOpenSportsCar,
            }

            anim Close
            {
                sound = VehicleHoodCloseSportsCar,
            }

            table install
            {
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                recipes = Advanced Mechanics,
            }
        }

        part Heater
        {
            category = engine,

            lua
            {
                update = Vehicles.Update.Heater,
            }
        }

        part PassengerCompartment
        {
            category = nodisplay,

            lua
            {
                update = Vehicles.Update.PassengerCompartment,
            }
        }

        template = Windshield/part/Windshield,
        template = Windshield/part/WindshieldRear,

        part WindshieldRear
        {
            parent = TrunkDoor,

            table install
            {
                requireInstalled = TrunkDoor,
            }
        }

        part Windshield*
        {
            table install
            {
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                recipes = Advanced Mechanics,
            }
        }

        template = Window/part/WindowFrontLeft,
        template = Window/part/WindowFrontRight,
        template = Window/part/WindowRearLeft,
        template = Window/part/WindowRearRight,

        part WindowRearLeft
        {
            area = TireRearLeft,
            parent =,

            table install
            {
                requireInstalled =,
            }
        }

        part WindowRearRight
        {
            area = TireRearRight,
            parent =,

            table install
            {
                requireInstalled =,
            }
        }

        part Window*
        {
            anim Open
            {
                sound = VehicleWindowElectricOpen,
            }

            anim Close
            {
                sound = VehicleWindowElectricClose,
            }

            table install
            {
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                recipes = Advanced Mechanics,
            }
        }

        template = Door/part/DoorFrontLeft,
        template = Door/part/DoorFrontRight,

        part Door*
        {
            anim Open
            {
                sound = VehicleDoorOpenSportsCar,
            }

            anim Close
            {
                sound = VehicleDoorCloseSportsCar,
            }

            anim Lock
            {
                sound = LockVehicleDoorSportsCar,
            }

            anim Unlock
            {
                sound = UnlockVehicleDoorSportsCar,
            }

            anim IsLocked
            {
                sound = VehicleDoorIsLockedSportsCar,
            }

            table install
            {
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                recipes = Advanced Mechanics,
            }
        }

        template = Tire,

        part TireFrontLeft
        {
            model InflatedTirePlusWheel
            {
                file = fhq300ZXZ32WheelLeft,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        part TireFrontRight
        {
            model InflatedTirePlusWheel
            {
                file = fhq300ZXZ32WheelRight,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        part TireRearLeft
        {
            model InflatedTirePlusWheel
            {
                file = fhq300ZXZ32WheelLeft,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        part TireRearRight
        {
            model InflatedTirePlusWheel
            {
                file = fhq300ZXZ32WheelRight,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        template = Brake,

        part Brake*
        {
            table install
            {
                skills = Mechanics:7,
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                skills = Mechanics:7,
                recipes = Advanced Mechanics,
            }
        }

        template = Suspension,

        part Suspension*
        {
            table install
            {
                skills = Mechanics:7,
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                skills = Mechanics:7,
                recipes = Advanced Mechanics,
            }
        }

        template = Radio,
        template = Headlight,
		
		useChassisPhysicsCollision = false,

        physics box
        {
            offset = 0.0000 0.2315 0.0000,
            extents = 2.1600 0.4800 5.1200,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.7430 -1.4133,
            extents = 1.9733 0.8800 1.7333,
            rotate = -10.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.4461 1.6667,
            extents = 2.0800 0.5067 1.6000,
            rotate = 14.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.6376 0.3200,
            extents = 2.0000 1.1733 0.8800,
            rotate = -66.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.8800 -0.3733,
            extents = 2.0000 0.8533 0.6133,
            rotate = 4.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.6933 -2.2706,
            extents = 1.9467 0.5867 0.3200,
            rotate = 16.0000 0.0000 0.0000,
        }

        attachment trailer
        {
            offset = 0.0000 -0.3200 -2.5733,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 -0.3067 2.5467,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
    }
}
